<input type="hidden" name="action" value="editor" />
<input type="hidden" name="item" value="<?php echo $item['id']; ?>" />
<fieldset>
	<dl>
		<dt>&nbsp;</dt>
		<dd><input type="submit" value="Save" style="padding-left:20px; padding-right:10px;  background-image: url('../images/system/save.gif'); border:1px solid #DDDDDD; height:20px;" class="buttons">
		</dd>
	</dl>
	<dl>
		<dt>Title:</dt>
		<dd>
			<input name="title" type="text" value="<?php echo $item['title']; ?>" style="width:30%">
			&nbsp;<?php echo $error['title']; ?>
		</dd>
	</dl>
	<dl>
		<dt>Site URL:</dt>
		<dd>
			<input name="site_url" type="text" value="<?php echo $item['site_url']; ?>" style="width:30%">
			&nbsp;<?php echo $error['site_url']; ?>
		</dd>
	</dl>
	<dl>
		<dt>License:</dt>
		<dd>
			<input name="license" type="text" value="<?php echo $item['license']; ?>" style="width:30%">
			&nbsp;<?php echo $error['license']; ?>
		</dd>
	</dl>
	<dl>
		<dt>Language:</dt>
		<dd>
			<select name="language" style="width:30%;" onChange="submit()">
				<option value="en" <?php if ($item['language'] == 'en'){echo 'selected="selected"'; }?> >English</option>
				<option value="no" <?php if ($item['language'] == 'no'){echo 'selected="selected"'; }?> >Norwegian</option>
				<option value="ba" <?php if ($item['language'] == 'bs'){echo 'selected="selected"'; }?> >Bosnian</option>
			</select>
			&nbsp;<?php echo $error['language']; ?>
		</dd>
	</dl>
    <dl>
		<dt>Active Cores:</dt>
		<dd>
        	<?php if($cores): ?>
            <?php 
			foreach($cores as $core)
			{
				if($siteCores[$item['id']][$core['id']])
				{ echo '<input checked="checked" name="site_cores[]" type="checkbox" value="'.$core['id'].'" />'; }
				else
				{ echo '<input name="site_cores[]" type="checkbox" value="'.$core['id'].'" />'; }
				echo $core['title'].'<br />';
			}
			?>
            <?php endif; ?>
		</dd>
	</dl>
</fieldset>